//package com.zmn.plat.dubbo.controller;
//
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.plat.business.interfaces.price.meter3.Meter3ProductPriceBService;
//import com.zmn.plat.business.interfaces.price.meter3.MeterFlow3BService;
//import com.zmn.plat.business.interfaces.price.meter3.MeterFlow3CommonBService;
//import com.zmn.plat.business.interfaces.price.meter3.MeterFlow3ItemBService;
//import com.zmn.plat.common.dto.base.AcceptProjectDRO;
//import com.zmn.plat.common.dto.base.FaultDRO;
//import com.zmn.plat.common.dto.base.PhenomenonDRO;
//import com.zmn.plat.common.dto.base.ServiceContentDRO;
//import com.zmn.plat.common.dto.brand.BaseBrandDRO;
//import com.zmn.plat.common.dto.price.ProductPriceQuery;
//import com.zmn.plat.common.dto.price.meter3.*;
//import com.zmn.plat.common.dto.product.tariff.TariffBackProductDRO;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.util.List;
//
//@Slf4j
//@RestController
//@RequestMapping("/test/MeterFlow3/item/")
//public class MeterFlow3ItemController {
//
//    @Resource
//    private MeterFlow3ItemBService meterFlow3ItemBService;
//
//    // 查询上门费
//    @RequestMapping(value = "test0", method = RequestMethod.POST)
//    public ResponseDTO test0(@RequestBody MeterBaseQuery3 query) {
//        long start = System.currentTimeMillis();
//        ItemDRO3 dro = meterFlow3ItemBService.getDoorFeeByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    // 查询产品的服务项（未计算系数）
//    @RequestMapping(value = "test1", method = RequestMethod.POST)
//    public ResponseDTO test1(@RequestBody ItemPriceQuery3 query) {
//        long start = System.currentTimeMillis();
//        List<ItemDRO3> dro = meterFlow3ItemBService.listItemByQuery(query);
//        ItemDRO3 dro2 = meterFlow3ItemBService.getMinItemPriceByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro2, "耗时：" + (end - start));
//    }
//
//    // 查询产品的服务项（未计算系数） 需要根据故障id集合筛选
//    @RequestMapping(value = "test2", method = RequestMethod.POST)
//    public ResponseDTO test2(@RequestBody MeterItemQuery3 query) {
//        long start = System.currentTimeMillis();
//        List<ItemDRO3> dro = meterFlow3ItemBService.listItemByFaultIdList(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    // 查询产品报价信息（计算系数）
//    @RequestMapping(value = "test3", method = RequestMethod.POST)
//    public ResponseDTO test3(@RequestBody MeterQuoteQuery3 query) {
//        long start = System.currentTimeMillis();
//        List<ItemDRO3> dro = meterFlow3ItemBService.listItemQuoteByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    // 查询产品的服务项价格（计算系数）
//    @RequestMapping(value = "test4", method = RequestMethod.POST)
//    public ResponseDTO test4(@RequestBody ItemPriceQuery3 query) {
//        long start = System.currentTimeMillis();
//        List<ItemDRO3> dro = meterFlow3ItemBService.listItemPriceByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//    // 查询产品的服务项价格（计算系数） 前台产品的属性值需要进行变换
//    @RequestMapping(value = "test5", method = RequestMethod.POST)
//    public ResponseDTO test5(@RequestBody ItemPriceQuery3 query) {
//        long start = System.currentTimeMillis();
//        List<ItemDRO3> dro = meterFlow3ItemBService.listItemPriceTransByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//
//
//
//}
